/**
 * 全局配置文件
 */
import {
    title,
    version,
    key,
    exid,
    appName,
    appUrl,
    icp,
    icpUrl,
    openTitle,
    openUrl,
    screenSaverTime,
    passwordTips,
} from '/src/config/env';

const engine = "https://www.zhihu.com/search?type=content&q=";
const iconfontUrl = "//at.alicdn.com/t/font_2172253_1jyhpc7xkb3.js";
const site = {
    version: version,
    title: appName,
    href: appUrl,
    icp: icp,
    icpHref: icpUrl,
    openTitle: openTitle,
    openHref: openUrl,
    screenSaverTime: screenSaverTime,
    passwordTips: passwordTips,
};

export default {
    title: title,
    logo: "/assets/imgs/logo.png",
    //noImg: "/src/assets/imgs/network.png",

    key: 'KEY',
    exId: 'EXID',
    engine: 'ENGINE',
    engineNow: 'ENGINENOW',
    menu: 'MENU',
    icon: 'ICON',
    bookmark: 'BOOKMARK',
    quick: 'QUICK',
    goto: 'GOTO-HREF',
    token: 'USER-TOKEN',
    info: 'USER-INFO',
    lock: 'USER-LOCK',
    question: 'QUESTION',
    setting: 'SETTING',

    defaultKey: key,            // 默认为自己的KEY
    defaultExId: exid,          // chrome插件ID
    defaultEngine: engine,      // 默认搜索引擎
    iconfontUrl: iconfontUrl,   // iconfont地址

    quickLimit: 20,

    // 帮助
    help: {
        notice: {
            message: '快速上手',
            description: '更多手册点击查看更多...',
        }
    },

    // Config 配置
    settingConfig: {
        // 打开方式
        openType: {
            search: {
                list: [
                    {label: '新标签', value: 'new'},
                    {label: '当前标签', value: 'now'},
                ],
                value: 'new',
            },
            quick: {
                list: [
                    {label: '新标签', value: 'new'},
                    {label: '当前标签', value: 'now'},
                ],
                value: 'new',
            },
            bookmark: {
                list: [
                    {label: '新标签', value: 'new'},
                    {label: '当前标签', value: 'now'},
                ],
                value: 'new',
            },
        },
        // 站点基础配置
        site: site,
        // 快捷键
        quickKey: [
            {label: '网页刷新', value: 'F5'},
            {label: '强制刷新', value: 'Ctrl + F5'},
            {label: '设置key + exid', value: 'F2'},
            {label: '锁屏', value: 'Alt + 1'},
            {label: '下一张壁纸', value: 'Alt + 2'},
            {label: '设置面板', value: 'Alt + 3'},
        ],
        // 主题
        skin: {
            list: [
                {label: '默认主题', value: 'default'},
                {label: '第一主题', value: 'first'},
                {label: '列表主题', value: 'listSkin'},
                {label: 'Demo主题', value: 'demo'},
            ],
            value: 'listSkin',
            // 该主题下单独设置,[key]对应list里面的value,在这里设置适宜的参数配置
            // 默认主题下独立设置项
            default: {
                // 首页显示
                indexType: {
                    list: [
                        {label: '快速访问', value: 'quick'},
                        {label: '站点书签', value: 'bookmark'},
                    ],
                    value: 'quick',
                },
                // 历史记录
                history: {
                    list: [
                        {label: '开启', value: 'on'},
                        {label: '关闭', value: 'off'},
                    ],
                    value: 'on',
                    state: false,   // 面板状态
                },
                // 天气
                weather: {
                    list: [
                        {label: '开启', value: 'on'},
                        {label: '关闭', value: 'off'},
                    ],
                    key: 'e5636ea5-bd2d-403e-b640-caa83b5c13c0',        // 心知[天气插件]KEY,访问心知天气网站生成天气插件获得
                    value: 'on',
                },
            },
            // 第一主题下独立设置项
            first: {
                // 历史记录
                history: {
                    list: [
                        {label: '开启', value: 'on'},
                        {label: '关闭', value: 'off'},
                    ],
                    value: 'on',
                },
                // 天气
                weather: {
                    list: [
                        {label: '开启', value: 'on'},
                        {label: '关闭', value: 'off'},
                    ],
                    key: 'e5636ea5-bd2d-403e-b640-caa83b5c13c0',        // 心知[天气插件]KEY,访问心知天气网站生成天气插件获得
                    value: 'on',
                },
            },
            // 列表主题下独立设置项
            listSkin: {
                // 天气
                weather: {
                    list: [
                        {label: '开启', value: 'on'},
                        {label: '关闭', value: 'off'},
                    ],
                    key: 'e5636ea5-bd2d-403e-b640-caa83b5c13c0',        // 心知[天气插件]KEY,访问心知天气网站生成天气插件获得
                    value: 'on',
                },
            },
            // Demo主题下独立设置项
            demo: {
                key1: 1,
                key2: 2,
                key3: 3,
                key4: 4,
                key5: 5,
            },
        },
        // 背景
        background: {
            state: true,           // 是否显示背景图片
            list: [
                {label: '官方库', value: 'main', dft: 'http://images.yi-ja.com/wallpaper/00.jpg'},
                // {label: '本地', value: 'local', dft: '/src/assets/imgs/wallpaper.jpg'},
                {label: '纯色', value: 'pure', dft: '#e5e5e5'},
            ],
            value: 'main',
            // 配置
            main: {
                dft: 'http://images.yi-ja.com/wallpaper/00.jpg',
                filter: 0,
                value: ''
            },
            // local: {
            //     dft: '/src/assets/imgs/wallpaper.jpg',
            //     filter: 0,
            //     value: ''
            // },
            pure: {
                value: '#e5e5e5'
            },
        },
    },

    // 消息
    msg: {
        success: '成功了',
        error: '出错了',
    },
}
